# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-winsspi
_pkgname=winsspi
pkgver=0.0.11
pkgrel=5
pkgdesc='Windows SSPI library in pure Python.'
arch=('any')
url='https://pypi.org/project/winsspi/#files'
license=('MIT')
depends=('python' 'python-minikerberos')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('071007155670784980583b55d4075ad6e1435f97c00ad09c126477ffc4803820a25a02840eddb0c6bc616125285f3e5b6011ec1c3ba3404078e4afc055cb0d17')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

